#include "EtatRobotEnCharge.h"
#include "EtatRobotEnChargeFaceObstacle.h"

static EtatRobotEnCharge* instance;

EtatRobotEnCharge* EtatRobotEnCharge::getInstance(Robot* r) {

	if (instance == NULL)
		instance = new EtatRobotEnCharge(r);

	return instance;
}

void EtatRobotEnCharge::avancer() {
}

void EtatRobotEnCharge::tourner() {
}

int EtatRobotEnCharge::peser() {
}

void EtatRobotEnCharge::rencontrerObstacle() {
	r->changerEtat((EtatRobot*) EtatRobotEnChargeFaceObstacle::getInstance(r));
}
